Method: rich.markup.render.<locals>.pop_style
Calls: 68, Exceptions: 2, Paths: 3Back
Path 1: 66 calls (0.97)
'bold' (33) 'italic' (12) 'red' (9) 'link' (6) 'blue' (2) 'green' (2) '@click' (1) 'underline' (1)
tuple (66)
1def pop_style(style_name: str) -> Tuple[int, Tag]:
2 """Pop tag matching given style name."""
3 for index, (_, tag) in enumerate(reversed(style_stack), 1):
4 if tag.name == style_name:
5 return pop(-index)
6 raise KeyError(style_name)
Path 2: 1 calls (0.01)
'bar' (1)
KeyError (1)
1def pop_style(style_name: str) -> Tuple[int, Tag]:
2 """Pop tag matching given style name."""
3 for index, (_, tag) in enumerate(reversed(style_stack), 1):
4 if tag.name == style_name:
5 return pop(-index)
6 raise KeyError(style_name)
Path 3: 1 calls (0.01)
'bar' (1)
KeyError (1)
1def pop_style(style_name: str) -> Tuple[int, Tag]:
2 """Pop tag matching given style name."""
3 for index, (_, tag) in enumerate(reversed(style_stack), 1):
4 if tag.name == style_name:
5 return pop(-index)
6 raise KeyError(style_name)